package com.rice.spring_boot.spring_boot_test.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rice.spring_boot.spring_boot_test.service.TestService;

@SpringBootApplication
@RestController
public class TestController {
	
	
	@Autowired
	private TestService testService;
	
	@RequestMapping("/test/helloWorld")
	public String helloWorld() {
		return "Hello " + testService.test();
	}

}
